package com.testlio.assignment.common;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * Standard API response wrapper for all endpoints.
 * Provides a consistent response format across the API.
 * @param <T> Type of the data payload
 */
@Data
@AllArgsConstructor
public class ApiResponse<T> {
    /**
     * HTTP status code
     */
    private int code;

    /**
     * Response message
     */
    private String message;

    /**
     * Response data payload
     */
    private T data;
}